/****************************************************************
 * Copyright (c) 2006-2007 Besture All Rights Reserved.
 * 
 * File Name:		MessageBox.cs
 * 
 * Created:		2013/06/24
 * Original Author:	Ni Tao
 * 
 * ------------------------------------------------------------
 * MODIFICATION HISTORY
 * ------------------------------------------------------------
 * When			Who		Why
 * ------------------------------------------------------------
 * 
 *
 ****************************************************************/
using System;
using Microsoft.Practices.EnterpriseLibrary.Logging;
using Besture.Common.Definition;
namespace Besture.Common.Logging
{
    /// <summary>
    /// Logger Class
    /// </summary>
    public static class AppLogger
    {
        /// <summary>
        /// Write Log into log file
        /// </summary>
        /// <param name="strMessage">log content</param>
        public static void TraceLog(string strMessage)
        {
            LogEntry log = new LogEntry();
            log.Title = AppSettings.GetSystemName();
            log.TimeStamp = DateTime.Now;
            log.Categories.Add("General");
            log.Message = strMessage;
            log.Priority = 0;
            Logger.Write(log);
        }
    }
}
